package org.dromara.iot.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.iot.domain.IotFaultManage;

/**
 * 故障管理业务对象 iot_fault_manage
 *
 * @author lsl
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IotFaultManage.class, reverseConvertGenerate = false)
public class IotFaultManageBo extends BaseEntity {

    /**
     * 故障ID
     */
    @NotBlank(message = "故障ID不能为空", groups = {EditGroup.class})
    private String faultId;

    /**
     * 品牌ID
     */
    @NotNull(message = "品牌ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long brandId;

    /**
     * 品牌名称
     */
    @NotBlank(message = "品牌名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String brandName;

    /**
     * 型号ID
     */
    @NotNull(message = "型号ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long modelId;

    /**
     * 型号IDS
     */
    @NotBlank(message = "型号IDS不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelIds;

    /**
     * 型号名称
     */
    @NotBlank(message = "型号名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String modelName;

    /**
     * 故障代码
     */
    @NotBlank(message = "故障代码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String faultCode;

    /**
     * 故障描述
     */
    @NotBlank(message = "故障描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String faultDescribe;

    /**
     * 可能原因
     */
    @NotBlank(message = "可能原因不能为空", groups = {AddGroup.class, EditGroup.class})
    private String possibleCauses;

    /**
     * 缺陷元件
     */
    @NotBlank(message = "缺陷元件不能为空", groups = {AddGroup.class, EditGroup.class})
    private String defectiveElement;

    /**
     * 电梯状态
     */
    @NotBlank(message = "电梯状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String elevatorStatus;

    /**
     * 恢复
     */
    @NotBlank(message = "恢复不能为空", groups = {AddGroup.class, EditGroup.class})
    private String recovery;

    /**
     * 实验
     */
    @NotBlank(message = "实验不能为空", groups = {AddGroup.class, EditGroup.class})
    private String experiment;


}
